package com.benjaminwan.read.free.model.action

import com.benjaminwan.read.free.model.enums.ActionType
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class Delay @JvmOverloads constructor(
    val delayRange: LongRange? = null,
    override val actionType: ActionType = ActionType.Delay
) : Action() {
    override fun toString(): String {
        return if (delayRange == null) "延时:global ms" else "延时:$delayRange ms"
    }
}